﻿using OSCSchema;

namespace OSC.Base
{
    public class Publisher : IActivityDetail
    {
        private readonly string m_Id;
        private readonly string m_Name;
        private readonly string m_NameHint;
        private readonly string m_EmailAddress;
        private readonly string m_ProfileUrl;

        public Publisher(string id, string name, string nameHint, string emailAddress, string profileUrl)
        {
            m_Id = id;
            m_Name = name;
            m_NameHint = nameHint;
            m_EmailAddress = emailAddress;
            m_ProfileUrl = profileUrl;
        }

        public templateVariableType ToTemplateVariableType()
        {
            return new templateVariableType
                       {
                           id = m_Id,
                           name = m_Name,
                           nameHint = m_NameHint,
                           emailAddress = m_EmailAddress,
                           profileUrl = m_ProfileUrl,
                           type = templateTypeRestrictionType.publisherVariable
                       };
        }
    }
}